lexer grammar RuleLexer;

@header {
package org.moflon.moca.rule.parser;
import org.moflon.moca.MocaUtil;
}

WHITESPACE: (' ' | '\t' | '\r' ) { skip(); };
COMMENT: ( '/*' .* '*/' );
TO: '=>';
DONTCARE: '*';
THIS: '#';
EMPTY: '_';
SEPARATOR: '|';
NEWLINE: '\n';
OPENPAR: '[';
CLOSEPAR: ']';




RULE: 'rule';
BEFORE: 'before';
AFTER: 'after';
ROW: 'row';
DONTCARE_FIELD: 'dontcare_field';
THIS_FIELD: 'this_field';
EMPTY_FIELD: 'empty_field';
MAIN: 'main';


